package com.ygsoft.tianlu_mall.mapper;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

public interface OrderMapper {
    //结算
    double getGoodsPrice(int goods_id);
    void addGoodsToOrder(HashMap<String, Object> orderMap);
    int getOrderId();
    void addGoodsToOrder2Detail(HashMap<String, Object> order2detailMap);

    //遍历订单
    HashMap<String, Object> getUserInfo(int user_id);

    List<HashMap<String, Object>> orderGoodsInfo(HashMap<String, Object> map);

    BigDecimal getUserRestMoney(int user_id);
    void updateUserMoney(HashMap<String, Object> map);
    void updateOrder2DetailStatus(HashMap<String,Object> map);
    int getShopUserid(int order_id);
    BigDecimal getEveryOrderMoney(int order_id);
    void updateShopUserMoney(HashMap<String, Object> map);
    List<HashMap<String, Object>> getGoodsIdByOrderId(int order_id);

    List<HashMap<String, Object>> getGoodsFile(HashMap<String, Object> map);

    List<HashMap<String, Object>> getOrderInfo(int user_id);


    void deleteOrder(HashMap<String, Object> map);
    void deleteOrder2detail(int order_id);

    int getOrderIdByGoodsid(HashMap<String,Object> map);

    void addEvaluation(HashMap<String, Object> map);

    void updateOrder2DetailStatus2(HashMap<String, Object> statusMap);

    int getEvaluation();

    void updateOrder2DetailEvaluationId(HashMap<String, Object> evaluationMap);


    List<HashMap<String,Object>> getGoodsStatus(int order_id);

    void updateOrderEndTime(HashMap<String, Object> orderMap);

}
